package com.uls.ycl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 材料对象 ycl_repair_material
 * 
 * @author ycl
 * @date 2024-11-09
 */
public class RepairMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 材料ID */
    private Long materialId;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String name;

    /** 材料描述 */
    @Excel(name = "材料描述")
    private String description;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long total;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date createdAt;

    /** 材料价格 */
    @Excel(name = "材料价格")
    private BigDecimal price;

    /** 材料总价 */
    @Excel(name = "材料总价")
    private BigDecimal totalPrice;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date updateAt;


    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setUpdateAt(Date updateAt) 
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt() 
    {
        return updateAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("name", getName())
            .append("description", getDescription())
            .append("total", getTotal())
            .append("createdAt", getCreatedAt())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("updateAt", getUpdateAt())
            .toString();
    }
}
